package com.ang.Test;

import com.ang.Dao.UserDaoImpl;
import com.ang.Service.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class t {
    public static void main(String[] args) {
      ApplicationContext context = new ClassPathXmlApplicationContext("bea.xml");
        UserServiceImpl userServiceImpl = (UserServiceImpl) context.getBean("UserServiceImpl");
        userServiceImpl.getUser();

    }
}
